package com.tz.dream.architect.mvp.framework.support;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.tz.dream.architect.mvp.framework.MvpPresenter;
import com.tz.dream.architect.mvp.framework.MvpView;

/**
 * 作者: Dream on 2018/3/16 21:30
 * QQ:510278658
 * E-mail:510278658@qq.com
 */

//代理模式->第一重代理->生命周期->目标接口：定义的是Activity生命周期方法
public interface ActivityMvpDelegate<V extends MvpView, P extends MvpPresenter<V>> {

    void onCreate(Bundle savedInstanceState);

    void onStart();

    void onRestart();

    void onResume();

    void onPause();

    void onStop();

    void onDestroy();

    //增加数据缓存生命周期方法
    void onSaveInstanceState(Bundle outState);

    void onPostCreate(@Nullable Bundle savedInstanceState);

}
